##!/usr/bin/python2
## -*- coding: utf-8 -*-
<%page args="shot, page" />
<%
from pygolem_lite.modules import make_config, get_page_paths, make_image
from pygolem_lite import Shot
import re
page_path, base_path, page = get_page_paths(shot, page)
%>
<a href="main.py">[Source - main.py]</a><br/>
<a href="PlasmaPosition.py">[Source - PlasmaPosition.py]</a><br/>
<a href="MagFieldCalc.py">[Source - MagFieldCalc.py]</a><br/>
<a href="MagFieldProfileGen.py">[Source - MagFieldProfileGen.py]</a><br/>
% if Shot(shot)['plasma']:
${make_image("graphs/plasma_position" , "Plasma position")}
${make_image("graphs/plasma_position_polar" , "Plasma polar position")}
${make_image("graphs/plasma_radius" , "Plasma radius")}
${make_image("graphs/residuum" , "Residuum")}
<?php
if (file_exists("animation.wmv"))
{
echo "<h4> Animation of the poloidal magnetic field</h4>";
echo " <a href='animation.wmv'>[animation.wmv]</a>";
}
?>
${Shot(shot).get_pygolem_list(['plasma_position_r', 'plasma_position_z', 'plasma_radius', 'plasma_position:reliability'])}
%else:
<h2>No plasma</h2>
%endif